package com.hanserwei.mydemo.stream;

import java.util.stream.IntStream;

public class GenerateTest1 {
    public static void main(String[] args) {
        //1.IntStream.rangeClose
        IntStream.rangeClosed(1, 10).forEach(System.out::print);
        //2.IntStream.range
        IntStream.range(1, 10).forEach(System.out::print);
    }
}
